package cn.cnsy123.bookwebsiteserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;

@EntityScan(basePackages = {"cn.cnsy123.bookwebsiteserver.entity"})
@ImportResource(locations = {"classpath:kaptcha.xml"})
@ServletComponentScan
@EnableCaching
@SpringBootApplication
public class CnsyBookLibraryServerApplication {
    
    private static final Logger logger = LoggerFactory.getLogger(CnsyBookLibraryServerApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(CnsyBookLibraryServerApplication.class, args);
		logger.info("图书管理系统启动成功");
	}

}
